import request from '@/utils/request'

// 查询经营许可证信息列表
export function listCertificate(query) {
  return request({
    url: '/platform/certificate/list',
    method: 'get',
    params: query
  })
}

// 查询经营许可证信息详细
export function getCertificate(serviceInstitutionId) {
  return request({
    url: '/platform/certificate/' + serviceInstitutionId,
    method: 'get'
  })
}

// 新增经营许可证信息
export function addCertificate(data) {
  return request({
    url: '/platform/certificate',
    method: 'post',
    data: data
  })
}

// 修改经营许可证信息
export function updateCertificate(data) {
  return request({
    url: '/platform/certificate',
    method: 'put',
    data: data
  })
}

// 删除经营许可证信息
export function delCertificate(serviceInstitutionId) {
  return request({
    url: '/platform/certificate/' + serviceInstitutionId,
    method: 'delete'
  })
}
